package com.warm.middle.pojo;

public class SysUser {

    public SysUser(String account, Integer sex, Integer age) {
        this.account = account;
        this.sex = sex;
        this.age = age;
    }

    public SysUser(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public SysUser() {
    }

    public Boolean check(Integer age){
        return age > 18 ? true : false;
    }

    private Integer id;

    private String account;

    private String password;

    private String name;

    private Integer sex;

    private Integer age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                '}';
    }
}
